<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../../commons/taglib.jsp" %>
<!DOCTYPE html>
<html lang="zh-cn">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>号表处理</title>
<link rel="stylesheet" href="${ctx}/static/css/admin.css">
<link rel="stylesheet" href="${ctx}/static/css/pintuer.css">
<script src="${ctx}/static/js/jquery.js"></script>
<script src="${ctx}/static/js/pintuer.js"></script>
</head>

<body>
	<form method="post" action="" id="listform">
		<div class="panel admin-panel">
			<div class="panel-head">
				<strong class="icon-reorder"> 号表处理</strong>
				<div style="float: right;">
					<button class="button border-main" type="submit" onclick="add()"> 新增</button>
					<button class="button border-main" type="submit" onclick="batchdelete()"> 删除</button>
					<button class="button border-main" type="submit" onclick="batchCopy()"> 复制</button>
					<button class="button border-main" type="submit" onclick="Dcbtn()"> 导出</button>
		            <button class="button border-main" type="submit" onclick="push()"> 刷新</button>
				</div>
				<div style="clear: both;"></div>
			</div>
			<div class="padding border-bottom">
				<ul class="search" style="padding-left: 10px;">
					<li><input type="text" placeholder="科室名称" name="keywords"
						class="input ks"
						style="width: 250px; line-height: 17px; display: inline-block" />
						<input type="text" placeholder="医生姓名" name="keywords"
						class="input ys"
						style="width: 250px; line-height: 17px; display: inline-block" />
					</li>
					<li><select name="cid" class="input se"
						style="width: 200px; line-height: 17px;">
							<option value="">全部号别</option>
							<option value="普通">普通</option>
							<option value="急诊">急诊</option>
							<option value="副主任专家号">副主任专家号</option>
							<option value="主任专家号">主任专家号</option>
							<option value="免费号">免费号</option>
							<option value="专家号">专家号</option>
					</select></li>
					<li><input type="date" name="data" value="2017-09-24"
						class="input sj"
						style="width: 250px; height: 38px; line-height: 17px; display: inline-block" />
						<a href="javascript:void(0)"
						class="button border-main icon-search" onclick="changesearch()">
							搜索</a></li>
				</ul>
			</div>
			<table class="table table-hover text-center">
				<tr>
					<th width="10%"
						style="text-align: left; padding: 10px 0; padding-left: 20px; border-bottom: 2px solid #ddd; border-top: 0px solid #ddd; font-weight: bold;"><input
						type="checkbox" id="checkall" /> 操作</th>
					<th style="text-align: center;" width="15%">科室名称</th>
					<th style="text-align: center;">医生姓名</th>
					<th style="text-align: center;">号别</th>
					<th style="text-align: center;" width="16%">号类</th>
					<th style="text-align: center;" width="15%">号表日期</th>
				</tr>
				<tr>
					<td style="text-align: left; padding-left: 20px;"><input
						type="checkbox" name="id[]" value="" /> 1</td>
					<td>SB科</td>
					<td>逗逼</td>
					<td>专家</td>
					<td>SB</td>
					<td style="border-bottom: 1px solid #ddd;">2016-07-01</td>
				</tr>
				<tr>
			</table>
		</div>
	</form>
	<script type="text/javascript">
			//搜索
			
			function changesearch() {
				console.log($('.ks').val());
				console.log($('.ys').val());
				console.log($('.se').val());
				console.log($('.sj').val());
			}
			//全选
			$("#checkall").click(function() {
				$("input[name='id[]']").each(function() {
					if (this.checked) {
						this.checked = false;
					} else {
						this.checked = true;
					}
				});
			})
		</script>
</body>

</html>